package com.ruoyi.wxdaiqu.feign;


import com.ruoyi.wxlogin.pojo.WxUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "wx-login",contextId = "daiqu")
public interface WxLoginFeignService {
    @GetMapping("/wx/user/getById")
    WxUser getById(@RequestParam("wxId") Integer id);
    @PostMapping("/wx/user/pay")
    WxUser getByOpenId(@RequestBody String openId);
}
